package org.apache.ibatis.demo.mapper;

import org.apache.ibatis.demo.pojo.Blog;
import org.apache.ibatis.myplugin.TableSeg;

import java.util.List;
@TableSeg(tableName="Blog", shardBy="createTime", shardByTable="create_time")
public interface BlogMapper {
  Blog selectBlog(Integer id);

  List<Blog> selectBlogWithCreateTime(String date);
}
